standardscaler into df data frame pandas

39

standardscaler into df data frame pandas -

scaled_features = StandardScaler().fit_transform(df.values)
scaled_features_df = pd.DataFrame(scaled_features, index=df.index, columns=df.columns)

Comments

Submit
0 Comments